//
//  UploadData.m
//  quickBatchManager
//
//  Created by jack on 15/11/16.
//  Copyright © 2015年 jack. All rights reserved.
//

#import "UploadData.h"
#import <SBJson.h>
@implementation UploadData

//@property NSInteger t_id;
//@property (copy,nonatomic) NSString *t_pkName;
//@property NSInteger t_pk;
//@property (copy,nonatomic) NSString *t_table;
////数据操作类型(0:新增 1：修改 2：删除)
//@property NSInteger t_opType;
//@property double t_time;


+(NSString *)getTableName
{
    return @"qbm_uploaddata";
}

+(NSString *)getPrimaryKey
{
    return @"t_id";
}


+(void)dbDidInserted:(NSObject*)entity result:(BOOL)result
{
    if([entity isKindOfClass:[UploadData class]])
    {
       //发送通知
    //    UploadData *data = (UploadData *)entity;
//        data.t_id = data.rowid;
//        [[NSNotificationCenter defaultCenter] postNotificationName:EventSynchronization object:data];
        [[NSNotificationCenter defaultCenter] postNotificationName:EventSynchronization object:nil];
    }
   // NSLog(@"DB UploadData插入数据成功");
    
}



@end
